import { defHttp } from '@/utils/http/axios'

// 查询海运订单日志操作列表
export function getOrderRecordPage(params) {
  return defHttp.get({ url: '/seatransportation/order-record/page', params })
}

// 查询海运订单日志操作详情
export function getOrderRecord(id: number) {
  return defHttp.get({ url: '/seatransportation/order-record/get?id=' + id })
}

// 新增海运订单日志操作
export function createOrderRecord(data) {
  return defHttp.post({ url: '/seatransportation/order-record/create', data })

}

// 修改海运订单日志操作
export function updateOrderRecord(data) {
  return defHttp.put({ url: '/seatransportation/order-record/update', data })
}

// 删除海运订单日志操作
export function deleteOrderRecord(id: number) {
  return defHttp.delete({ url: '/seatransportation/order-record/delete?id=' + id })
}

// 导出海运订单日志操作 Excel
export function exportOrderRecord(params) {
  return defHttp.download({ url: '/seatransportation/order-record/export-excel', params }, '海运订单日志操作.xls')
}
